
<p-dialog [(visible)]="display" modal="modal"  [responsive]="true" [width]="width" (onHide)="closeRestartMask(false)">
  <p-header>
    续借
  </p-header>
  <div class="ui-g restart">
    <div class="ui-g-12">
      <div class="file-box">
        <form class="form-horizontal" [formGroup]="borrowRestartForm" >
          <div class="form-group">
            <label  class="col-sm-2 control-label"><span>*</span>续借原因:</label>
            <div class="col-sm-8 ui-fluid">
              <textarea formControlName="remarsk" name="remarks" pInputTextarea type="text" [(ngModel)]="InventoryData.remarks"></textarea>

              <!--<input type="text" name="reportType" class="form-control" [(ngModel)]="currentInspection.name" *ngIf="state ==='update'" formControlName="contentName">-->
              <!--<input type="text" name="reportType" class="form-control" [(ngModel)]="submitAddInspection.name" *ngIf="state ==='add'" formControlName="contentName">-->
            </div>
          </div>
          <div class="form-group time">
            <label  class="col-sm-2  control-label"><span>*</span>归还时间:</label>
            <div class="col-sm-8 ui-fluid">
              <p-calendar  [showIcon]="true" [locale]="zh" name="return_time"
                           formControlName="return_time"
                           [styleClass]="'schedule-add'" dateFormat="yy-mm-dd" [required]="true" dataType="string"
                           [(ngModel)]="InventoryData.return_time" [minDate]="minDate">
              </p-calendar>
              <!--<p-dropdown [options]="inspectionNames" [(ngModel)]="currentInspection.inspection_cycle_cid" [autoWidth]="false" name="cycle" *ngIf="state ==='update'" formControlName="cycleName"></p-dropdown>-->
              <!--<p-dropdown [options]="inspectionNames" [(ngModel)]="submitAddInspection.inspection_cycle_cid" [autoWidth]="false" name="cycle" *ngIf="state ==='add'" formControlName="cycleName"></p-dropdown>-->
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
  <p-footer>
    <button type="button" pButton icon="fa-check" label="确定" (click)="updateInventoryContent()" [disabled]="!borrowRestartForm.valid"  ></button>
    <button type="button" pButton icon="fa-close"  label="取消" (click)="closeRestartMask(false)"></button>
  </p-footer>
</p-dialog>
